local xiongyi = fk.CreateSkill {
  name = "lingling__xiongyi",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["lingling__xiongyi"] = "凶疑",
  [":lingling__xiongyi"] = "锁定技，轮次开始时，若当前轮次不少于8，你分配2点伤害。",

  ["#lingling__xiongyi-choose"] = "凶疑：对一名角色造成2点伤害！",
}

xiongyi:addEffect(fk.RoundStart, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(xiongyi.name) and
        player.room:getBanner("RoundCount") > 7
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local to = room:askToChoosePlayers(player, {
      min_num = 1,
      max_num = 1,
      targets = room.alive_players,
      skill_name = xiongyi.name,
      prompt = "#lingling__xiongyi-choose",
      cancelable = false,
    })[1]
    room:damage {
      from = player,
      to = to,
      damage = 2,
      skillName = xiongyi.name,
    }
  end,
})

return xiongyi
